package com.gmcc.aiquality.webadmin.upms.service.impl;

import com.gmcc.aiquality.webadmin.upms.dao.DataCollectionTaskMapper;
import com.gmcc.aiquality.webadmin.upms.model.DataCollectionTask;
import com.gmcc.aiquality.webadmin.upms.service.DataCollectionTaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service("dataCollectionTaskService")
public class DataCollectionTaskServiceImpl implements DataCollectionTaskService {
    @Autowired
    private DataCollectionTaskMapper dataCollectionTaskMapper;
    @Override
    @Transactional(rollbackFor = Exception.class)
    public void add(DataCollectionTask dataCollectionTask) {
        dataCollectionTaskMapper.add(dataCollectionTask);
    }
}
